
/*
 * $Id$
 *
 * Copyright ( c ) 2014 XuNuo Corporation. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of XuNuo
 * Corporation ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with the terms
 * of the license agreement you entered into with XuNuo Corporation or a XuNuo
 * authorized reseller (the "License Agreement"). XuNuo may make changes to the
 * Confidential Information from time to time. Such Confidential Information may
 * contain errors.
 *
 * EXCEPT AS EXPLICITLY SET FORTH IN THE LICENSE AGREEMENT, XuNuo DISCLAIMS ALL
 * WARRANTIES, COVENANTS, REPRESENTATIONS, INDEMNITIES, AND GUARANTEES WITH
 * RESPECT TO SOFTWARE AND DOCUMENTATION, WHETHER EXPRESS OR IMPLIED, WRITTEN OR
 * ORAL, STATUTORY OR OTHERWISE INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A
 * PARTICULAR PURPOSE. XuNuo DOES NOT WARRANT THAT END USER'S USE OF THE
 * SOFTWARE WILL BE UNINTERRUPTED, ERROR FREE OR SECURE.
 *
 * XuNuo SHALL NOT BE LIABLE TO END USER, OR ANY OTHER PERSON, CORPORATION OR
 * ENTITY FOR INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL
 * DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR USE, WHETHER IN AN
 * ACTION IN CONTRACT, TORT OR OTHERWISE, EVEN IF XuNuo HAS BEEN ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES. XuNuo' TOTAL LIABILITY TO END USER SHALL NOT
 * EXCEED THE AMOUNTS PAID FOR THE XuNuo SOFTWARE BY END USER DURING THE PRIOR
 * TWELVE (12) MONTHS FROM THE DATE IN WHICH THE CLAIM AROSE.  BECAUSE SOME
 * STATES OR JURISDICTIONS DO NOT ALLOW LIMITATION OR EXCLUSION OF CONSEQUENTIAL
 * OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO END USER.
 *
 * Copyright version 2.0
 */
package com.th.supcom.pds.prescstatusquery.client.widget;

import com.extjs.gxt.ui.client.widget.form.TextField;

/**
 * 处方状态查询文本组件集合
 * 
 * @author 杨冲
 */
public class SupplyStatusQueryFields
{

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";
    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";
    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";
    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";
    /** 余额 */
    private TextField <Double> m_balanceField;
    /** 出生年月*/
    private TextField <String> m_birthDateField;
    /** 消费凭证号 */
    private TextField <String> m_consumeProofField;

    /** 姓名 */
    private TextField <String> m_nameField;

    /** 患者ID */
    private TextField <String> m_patientIdField;

    /** 处方号 */
    private TextField <String> m_recipeNoField;

    /** 性别 */
    private TextField <String> m_sexField;
    /**患者类型*/
    private TextField <String> m_prescSource;
    /**费别*/
    private TextField <String> m_visitTypeNameField;
    /**就诊次数*/
    private TextField <String> m_visitIdField;
    /**入科时间*/
    private TextField <String> m_visitBeginDateField;
    /**在院科室*/
    private TextField <String> m_deptNameField;
    /**在科天数*/
    private TextField <String> m_day;
    /**床号*/
    private TextField <String> m_number;
    public SupplyStatusQueryFields ()
    {
        createFields ();
    }

    /**
     * 创建组件
     */
    private void createFields ()
    {
        m_recipeNoField = new TextField <String> ();
        m_recipeNoField.setFieldLabel ("处方号");

        m_consumeProofField = new TextField <String> ();
        m_consumeProofField.setFieldLabel ("消费凭证");

        m_prescSource = new TextField <String> ();
        m_prescSource.setFieldLabel ("患者类型");
        m_prescSource.setEnabled (false);
        
        m_prescSource.setEnabled (false);
        m_nameField = new TextField <String> ();
        m_nameField.setFieldLabel ("姓名");
        m_nameField.setEnabled (false);

        m_patientIdField = new TextField <String> ();
        m_patientIdField.setFieldLabel ("患者ID");
        m_patientIdField.setEnabled (false);

        m_sexField = new TextField <String> ();
        m_sexField.setFieldLabel ("性别");
        m_sexField.setEnabled (false);

        m_birthDateField = new TextField <String> ();
        m_birthDateField.setFieldLabel ("出生年月");
        m_birthDateField.setEnabled (false);
        
        m_balanceField = new TextField <Double> ();
        m_balanceField.setFieldLabel ("余额");
        m_balanceField.setEnabled (false);
        
        m_visitTypeNameField = new TextField <String> ();
        m_visitTypeNameField.setFieldLabel ("费别");
        m_visitTypeNameField.setEnabled (false);
        
        m_visitIdField = new TextField <String> ();
        m_visitIdField.setFieldLabel ("就诊次数");
        m_visitIdField.setEnabled (false);
        
        m_visitBeginDateField = new TextField <String> ();
        m_visitBeginDateField.setFieldLabel ("就诊时间");
        m_visitBeginDateField.setEnabled (false);
        
        m_deptNameField = new TextField <String> ();
        m_deptNameField.setFieldLabel ("就诊科室");
        m_deptNameField.setEnabled (false);
        
        m_day = new TextField <String> ();
        m_day.setFieldLabel ("在科天数");
        m_day.setEnabled (false);
        
        m_number = new TextField <String> ();
        m_number.setFieldLabel ("床号");
        m_number.setEnabled (false);
    }

    /**
     * 获取出生日期组件
     * 
     * @return
     */
    public TextField <String> getBirthDateField ()
    {
        return m_birthDateField;
    }

    /**
     * 获取消费凭证号组件
     * 
     * @return
     */
    public TextField <String> getConsumeProofField ()
    {

        return m_consumeProofField;
    }

    /**
     * 获取姓名组件
     * 
     * @return the nameField
     */
    public TextField <String> getNameField ()
    {

        return m_nameField;
    }

    /**
     * 获取患者ID组件
     * 
     * @return the patientIdField
     */
    public TextField <String> getPatientIdField ()
    {

        return m_patientIdField;
    }

    /**
     * 返回刷卡组件
     * 
     * @return the recipeNoField
     */
    public TextField <String> getRecipeNoField ()
    {

        return m_recipeNoField;
    }

    /**
     * 获取性别组件
     * 
     * @return
     */
    public TextField <String> getSexField ()
    {
        return m_sexField;
    }

    public TextField <Double> getBalanceField ()
    {
    
        return m_balanceField;
    }

    public TextField <String> getPrescSource ()
    {
    
        return m_prescSource;
    }

    public TextField <String> getVisitTypeNameField ()
    {
    
        return m_visitTypeNameField;
    }

    public TextField <String> getVisitIdField ()
    {
    
        return m_visitIdField;
    }

    public TextField <String> getVisitBeginDateField ()
    {
    
        return m_visitBeginDateField;
    }

    public TextField <String> getDeptNameField ()
    {
    
        return m_deptNameField;
    }

    public TextField <String> getDay ()
    {
    
        return m_day;
    }

    public TextField <String> getNumber ()
    {
    
        return m_number;
    }
    
    
    
}
